import { PrimaryUuid, Entity, Int, Code, Title, CreateDate, UpdateDate } from "../utils";
import { Index } from "typeorm";

@Entity({
    name: 'fj_facilities'
})
@Index("FJ_FACILITIES_SOURCEID", ['from', 'sourceid'])
export class FjFacilities {

    @PrimaryUuid()
    id: string;

    @Int()
    sourceid: number;

    @Code({ default: '' })
    type: string;

    @Code()
    from: string;

    @Title({ default: '' })
    name: string;

    @Title({ default: '' })
    name_cn: string;

    @Code({ nullable: true })
    hash: string;

    @CreateDate()
    create_date: Date;

    @UpdateDate()
    update_date: Date;
}
